// components/container/container.js
const app = getApp()
Component({
	/**
	 * 组件的属性列表
	 */
	properties: {

	},
	/**
	 * 组件的初始数据
	 */
	data: {
		status: app.globalData.height,
		height: 0
	},
	attached() {
		var height
		var sysinfo = wx.getSystemInfoSync()
		var isiOS = sysinfo.system.indexOf('iOS') > -1
		if(isiOS){
			height = this.data.status + 44
		}else {
			height = this.data.status + 48
		}
		this.setData({
			height: height
		})
	},

  externalClasses: ['container'],
	/**
	 * 组件的方法列表
	 */
	methods: {

	}
})
